angular.module('app.controllers', [])




.controller('homeCtrl', function($scope , Sliders , $ionicModal) {
	$scope.sliders = Sliders;
    $ionicModal.fromTemplateUrl('templates/modal/goods-modal.html', {
        scope: $scope,
        animation: 'slide-in-up'
    }).then(function(modal) {
        $scope.modal = modal;
    });
    $scope.openModal = function() {
        $scope.modal.show();
    };
    $scope.closeModal = function() {
        $scope.modal.hide();
        $scope.modal.remove();
    };
})

.controller('personCtrl', function($scope) {

})

.controller('goodsDetailCtrl', function($scope,Sliders) {
    $scope.sliders = Sliders;

})

.controller('userinfoCtrl', function($scope) {

})
